package com.kaikeba.shop;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;

//引导类不允许放在根目录下
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class })
@EnableDubbo(scanBasePackages = "com.kaikeba.shop.controller")
public class WebApplication {
    public static void main(String[] args) {
        //启动Spring boot 需要指定引导类
        SpringApplication.run(WebApplication.class);
    }
}
